from flask import render_template, Blueprint, request


class EntryView(object):

    blueprint = Blueprint('entry', __name__)

    def get_blueprint(self) -> Blueprint:
        return self.blueprint

    @blueprint.route('/entry')
    def import_view(self=None) -> None:
        return render_template('test.html')


    @blueprint.route("/entry_request", methods=["GET"])
    def solve(self=None) -> None:
        print(request.files['file'])
        return "ok"


    @blueprint.route('/exit')
    def exit_view(self=None) -> None:
        return render_template('test.html')
    #
    # @blueprint.route('/export')
    # def exitView(self):
    #     return render_template('test.html')
